package jk.fox.common.payload.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @Auther cuichao
 * @Description: RpcResponse
 * @Date: create in 2020/3/30 23:53
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class RpcResponse implements Response {

    private String requestId;

    private int responseCode;

    private Object response;

    private String exceptionMessage;

    private String contentType;




    public RpcResponse(String requestId, int responseCode, String exceptionMessage) {
        this.requestId = requestId;
        this.responseCode = responseCode;
        this.exceptionMessage = exceptionMessage;
    }

    @Override
    public String getRequestId() {
        return requestId;
    }

    @Override
    public int getResponseCode() {
        return responseCode;
    }

    @Override
    public Object getResponse() {
        return response;
    }

    @Override
    public String getContentType() {
        return contentType;
    }

    @Override
    public String getExceptionMessage() {
        return exceptionMessage;
    }


}
